package com.mygdx.screen.listener;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;

/**
 * @Title: ButtonListener
 * @Author RuoLi
 * @Package com.mygdx.screen.listener
 * @Date 2023/12/19 23:44
 * @description: 退出按钮监听
 */
public class ButtonQuitListener extends InputListener {
    @Override
    public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
        Gdx.app.exit();
        return true;
    }
}
